<?php

include './Hardy/config/common.php';
include './Hardy/lib/lib.php';

include './Hardy/controller/controller.php';
include './Hardy/view/view.php';

$Hardy_database_handler = $Hardy_config['database'].'_handler';
include './Hardy/database/'.$Hardy_database_handler.'.php';

if(isset($_GET['op'])) $controller = Hardy_get_class($_GET['op'], 'controller');
if(!isset($controller)) $controller = Hardy_get_class('main', 'controller');
$controller->exec();

?>